﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace mighty
{
    public partial class About : Form
    {
        public About()
        {
            InitializeComponent();
        }

        private void About_Load(object sender, EventArgs e)
        {
            StreamReader sr = File.OpenText("rule.txt");
            txtRule.Text = sr.ReadToEnd();
            sr.Close();
            txtRule.Select(0, 0);
        }

        private void About_KeyPress(object sender, KeyPressEventArgs e)
        {
        }

        private void About_KeyUp(object sender, KeyEventArgs e)
        {
        }

        private void txtRule_KeyPress(object sender, KeyPressEventArgs e)
        {
        }

        private void txtRule_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape) Close();
        }
    }
}
